home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- if [ "$1" = "purge" ] ; then
- update-rc.d gdm remove >/dev/null
- rm -f /etc/default/gdm
- if [ -d /etc/gdm ]; then
- rmdir --ignore-fail-on-non-empty /etc/gdm/Init /etc/gdm/PreSession /etc/gdm/PostSession /etc/gdm/PostLogin /etc/gdm/Sessions /etc/gdm 2>/dev/null
- fi
- if [ -d /var/lib/gdm ]; then
- rm -r /var/lib/gdm
- fi
- if [ -d /var/log/gdm ]; then
- rm -r /var/log/gdm
- fi
- if getent passwd gdm >/dev/null; then
- deluser gdm
- fi
- if getent group gdm >/dev/null; then
- delgroup gdm
- fi
- fi
- # Automatically added by dh_installmenu
- if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
- # End automatically added section
- # Automatically added by dh_installdebconf
- if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
- . /usr/share/debconf/confmodule
- db_purge
- fi
- # End automatically added section
- # Automatically added by dh_scrollkeeper
- if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
- scrollkeeper-update -q
- fi
- # End automatically added section
- # Automatically added by dh_desktop
- if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
- update-desktop-database -q
- fi
- # End automatically added section
- # Automatically added by dh_iconcache
- [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
- if [ "$1" = "remove" ] && \
- [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
- [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
- if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
- [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
- # we shouldn't bomb out, if gtk-update-icon-cache failes,
- # it's not important enough
- gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
- else
- # if the icon theme directory has no subdirs, we can remove the cache
- rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
- fi
- fi
- # End automatically added section
-
- exit 0
-